/*
 * PacketInfo.h
 *
 *  Created on: 29 sept. 2009
 *      Author: CHETIER
 */

#ifndef PACKETINFO_H_
#define PACKETINFO_H_

#include <SFML/Network.hpp>
#include <list>

struct ClientInfo
{
	bool left;
	bool right;
	bool up;
	bool down;
	float x;
	float y;
	int id;
	std::string name;
	sf::IPAddress ipAdress;
};

class PacketInfo: public sf::Packet
{
public:
	PacketInfo();
	virtual ~PacketInfo();

	Packet& operator >>(ClientInfo&         Data);
	Packet& operator <<(ClientInfo&         Data);
	Packet& operator >>(std::list<ClientInfo>& 	Data);
	Packet& operator <<(std::list<ClientInfo>&  Data);
};

#endif /* PACKETINFO_H_ */
